<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<style>
h1{
    width: 300px;
    height: 200px;
    background-color: orange;
    text-align: center;
    line-height: 200px;
    margin: 100px;
    font-size: 22px;
    color: white;
}
</style>
<body>
    <script>
        document.write('<h1>努力学习javascript</h1>')
     </script>
</body>
</html>